module.exports = class Evt {
	constructor(){
		this.__ID=""
		this.__listeners={}
	}			
	on(_en,cb){
		let en = this.__ID+_en
		this.__listeners[en]||(this.__listeners[en]=[]);
		let __ls=this.__listeners[en];
		__ls.push(cb)
	}
	off(_en){
		let en = this.__ID+_en
		this.__listeners[en] = []
	}
	emit(_en,data){
		console.info(_en)
		let en = this.__ID+_en
		let __ls=this.__listeners[en]||[]
		__ls.forEach((cb,i,arr) =>{
			cb.apply(null,[...arguments].slice(1))
		})
	}
}
